package server.core.decorator;


import server.core.AbstractBeverage;
/**
 * describe:摩卡
 *
 * @author helloworldyu
 * @data 2018/1/4
 */
public class Mocha extends AbstractCondimentDecorator{


	/**
	 * @param beverage 要被装饰的饮料
	 */
	public Mocha(AbstractBeverage beverage) {
		super(beverage);
	}



	@Override
	public double cost() {
		return 0.20+beverage.cost();
	}

	@Override
	public String getDescription() {
		return beverage.getDescription()+" add Mocha";
	}
}